package secondBrain.gaslog;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class GasLogActivity extends Activity {
	
	private Button _newRec = null;
	private Button.OnClickListener _listener = new Button.OnClickListener(){
		public void onClick(View v){
			Intent intent = new Intent();
			intent.setClass(GasLogActivity.this, NewRecordActivity.class);
			startActivity(intent);
		}
	};
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        _newRec = (Button)findViewById(R.id.recordNewRecord);
        _newRec.setOnClickListener(_listener);
    }
}